﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BMUpload
{
    public partial class FrmInfo : Form
    {
        public FrmInfo(string cpname,string shpath)
        {
            corpname = cpname;
            _Sharepath = shpath;
            InitializeComponent();
        }

        private string corpname;
        public string CorpName
        {
            get { return corpname; }
            set { corpname = value; }
        }



        private string _Sharepath;
        public string  Sharepath
        {
            get { return _Sharepath; }
            set { value=_Sharepath; }
        }

        
        private void butOK_Click(object sender, EventArgs e)
        {
            corpname = textBox1.Text;
            _Sharepath = textBox2.Text; 
            DialogResult = DialogResult.OK;
        }

        private void FrmInfo_Load(object sender, EventArgs e)
        {
            textBox1.Text = corpname;
            textBox2.Text = _Sharepath;
        }

        private void butcancel_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
        }
    }
}
